package com.tencent50.easy;

/**
 * @author: zhengtao
 * @description:  344. 反转字符串
 * @version: 1.0
 * @date: 2022/07/25  22:52
 */
public class Demo22 {

    public void reverseString(char[] s) {
        int start=0;
        int end=s.length-1;
        while (start<end){
            char temp=s[start];
            s[start++]=s[end];
            s[end--]=temp;
        }
    }
}
